package com.taxi.serviceprice.remote;

import com.taxi.common.dto.ResponseResult;
import com.taxi.common.request.ForecastPriceDTO;
import com.taxi.common.response.DirectionResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @Author ruomengjiang
 * @Date 2022/7/11
 * @Description : online-taxi
 * @Version: 1.0
 */
@FeignClient("service-map")
public interface ServiceMapClient {

    @RequestMapping(method = RequestMethod.GET,value = "/direction/driving")
    public ResponseResult<DirectionResponse> direction(@RequestBody ForecastPriceDTO forecastPriceDTO);
}